package com.sn.springboot_netty.common.exception;

import lombok.Data;

/**
 * @Author fyy
 * @Description
 * @Date 2020/6/16 10:40
 */
@Data
public class MyException extends RuntimeException{

    private Integer code;

    public MyException(String msg){
        super(msg);
    }

    public MyException(Integer code,String msg){
        super(msg);
        this.code = code;
    }

}
